package com.simtop.hj.mapper;

import com.simtop.hj.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionMapper {
    List<Answer> getAnswer();

   Question getQuestion(@Param("questionId") Integer questionId);

    List<ProvinceResult> provinceStatistics();

    List<AnswerValue> getAnswerValue(@Param("questionId") Integer questionId);

    Question getQuestionName(@Param("questionId") Integer questionId);

    Integer commitPartOneGrade(QuestionGrade questionGrade);

    Integer commitPartGrade(QuestionGrade questionGrade);

    List<QuestionGrade> getModuleGrade(User user);

    List<PriceData> getWineBrand(@Param("choose") Integer choose);

    List<PriceData> getTendency(@Param("brandName") String brandName);

    AvgPrice getWineAvg(@Param("productCategory") String productCategory,@Param("array") String[] brandNameArray);
}
